// 库存管理接口
import request from "@/common/request.js";
const api = {
  supplier: "/supplier/",
};
const enBusinessApi = {
  get_supplier(params) {
    return request({
      url: api.supplier,
      method: "get",
      params,
    });
  },

  supplier_detail(id) {
    return request({
      url: api.supplier + id,
      method: "get",
    });
  },

  post_supplier(data) {
    return request({
      url: api.supplier,
      method: "post",
      data,
    });
  },

  patch_supplier(data, id) {
    return request({
      url: api.supplier + id + "/",
      method: "patch",
      data,
    });
  },

  delete_supplier(id) {
    return request({
      url: api.supplier + id + "/",
      method: "delete",
    });
  },
};
export default enBusinessApi